import http from './http'
let root=''
if (process.env.NODE_ENV === 'production') {
	root = '../'
	console.log("root", root)
}else{
	root = '/public'
	console.log("root", root)
}

// 合同
//export const pdfUrl = root + '/m/install/contract/'
// 审核员列表获取接口
// export const getAssistUserInfo = (params) => {
//   return http.fetchGet(api.getAssistUserInfo, params)
// /?s=App.Tasks.Updatetask
export default {
	async TasksUpdatetask(params){
		return await http.fetchPost(root + "?s=App.Tasks.Updatetask", params)
	},
	async RecordsUpdateBMXX(params){
		return await http.fetchPost(root + "?s=App.Records.UpdateBMXX", params)
	},
	async GetByIdTotalPoints(params){
		return await http.fetchPost(root + "?s=App.MemberH5.GetByIdTotalPoints", params)
	},
	async RecordsPages(params){
		return await http.fetchPost(root + "?s=App.Records.Pages", params)
	},
	async CoursecampusPages(params){
		return await http.fetchPost(root + "?s=App.Coursecampus.Pages", params)
	},
	async CoursesPages(params){
		return await http.fetchPost(root + "?s=App.Courses.Pages", params)
	},
	async CoursesItem(params){
		return await http.fetchPost(root + "?s=App.Courses.Item", params)
	},
	async NewsMovePage(params){
		return await http.fetchPost(root + "?s=App.NewsMove.Page", params)
	},
	async CoursesortPage(params){
		return await http.fetchPost(root + "?s=App.Coursesort.Page", params)
	},
	async CoursesSaves(params){
		return await http.fetchPost(root + "?s=App.Courses.Saves", params)
	},
	async CoursesDetail(params){
		return await http.fetchPost(root + "?s=App.Courses.Detail", params)
	},
	async NewsMovesPages(params){
		return await http.fetchPost(root + "?s=App.NewsMoves.Pages", params)
	},
	async RecordsPages(params){
		return await http.fetchPost(root + "?s=App.Records.Pages", params)
	},
	async CoursesPages(params){
		return await http.fetchPost(root + "?s=App.Courses.Pages", params)
	},
	// 获取待办的任务
	async TaskPage(params){
		return await http.fetchPost(root + "?s=App.Campustask.Page", params)
	},
	async getOpenid(params){
		return await http.fetchPost(root + "?s=App.Weixin.Weixin", params)
	},
	async getWeixinConfig(params){
		return await http.fetchPost(root + "?s=App.Config.ItemWeixin", params)
	},
	async login(params){
		return await http.fetchPost4login(root + "?s=App.Users.Logins", params)
	},
	async configItemShare(params){
		return await http.fetchPost(root + "?s=App.Config.ItemShare", params)
	},
	async configJssdk(params){
		return await http.fetchPost(root + "?s=App.Config.Jssdk", params)
	},
	uploadPic(params){
		return http.fetchPostForUpload(root + "?s=App.Examples_Upload.Go", params)
	}
}